import 'package:aitao_flutter/common_ui/back_nav.dart';
import 'package:aitao_flutter/common_ui/confirm_btn.dart';
import 'package:aitao_flutter/res/r.dart';
import 'package:aitao_flutter/style/box_style.dart';
import 'package:aitao_flutter/style/color_style.dart';
import 'package:aitao_flutter/style/edgeInsets_style.dart';
import 'package:aitao_flutter/style/text_style.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../routes/routes.dart';

class YoundSettingPage extends StatefulWidget {
  const YoundSettingPage({super.key});

  @override
  State<YoundSettingPage> createState() => _YoundSettingPageState();
}

class _YoundSettingPageState extends State<YoundSettingPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: ColorStyle.whiteColor,
      appBar: BackNavigation(title: '青少年模式'),
      body: Container(
          alignment: Alignment.center,
          padding: EdgeInsetsStyle.customMargin(80, 0, 80, 100),
          child: ListView(
            children: [
              Box.vBox(60),
              Image.asset(
                ImagePath.assetsImageYoungSet,
              ),
              Box.vBox10,
              Text(
                '未成年模式已关闭',
                style: Styles.normalText_18,
                textAlign: TextAlign.center,
              ),
              Box.vBox20,
              Text(
                '开启未成年模式，防止未成年使用',
                style: Styles.greyText_14,
                textAlign: TextAlign.center,
              ),
              Box.vBox30,
              ConfirmButton(
                title: '开启未成年模式',
                titleColor: ColorStyle.whiteColor,
                backGroundColor: ColorStyle.themeColor,
                callBack: () {
                  Get.toNamed(Routes.youngSetPassPage);
                },
              ),
            ],
          )),
    );
  }
}
